#include "mainwindow.h"

#include <QApplication>
#include <QObject>
#include <QTextCodec>

void SetCodec(QApplication &app)
{
    QTextCodec *codec = QTextCodec::codecForName("UTF-8"); // 设置编码格式为 utf-8
    QTextCodec::setCodecForTr(codec);
}

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    MainWindow w;
    w.show();
    return a.exec();
}
